package Book;

/**
 * Created with IntelliJ IDEA.
 * User: wenxiwen
 * Date: 2022/4/13
 * Time: 16:51
 * Description: No Description
 */
public class BookList {

    private Book[] books =new Book[10];
    private int count;


    public BookList() {
        books[0] = new Book("三国演义","罗贯中",50,"名著");
        books[1] = new Book("西游记","吴承恩",55,"名著");
        books[2] = new Book("红楼梦","曹雪芹",48,"名著");
        this.count = 3;
    }


    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Book getBook(int count) {
        return books[count];
    }

    public void setBook(int count,Book book) {
        books[count] = book;
    }
}